#ifndef _MAGICK_IMAGE_H_
#define _MAGICK_IMAGE_H_

#include <string>
#include "Blob.h"
#include <cv.h>

namespace Magick
{
	typedef std::exception Error;

	class Image
	{
	public:
		Image();

		Image(const std::string &fileName);

		~Image();

		void read(const std::string &fileName);
	
		void write(Blob* pBlob, const std::string& channelSeq);

		int columns(){ return _image->width; }

		int rows(){ return _image->height; }
	private:
		IplImage* _image;

	};
}

#endif